#ifndef __OKEYBOARD_H__
#define __OKEYBOARD_H__

class oDLL oKeyboard
{
public:
	enum {MAX_KEY = 256};
	static void updateKey(uint8 key, bool isDown);
	static bool isKeyDown(uint8 key);
	static bool isKeyUp(uint8 key);
	static bool isKeyPressed(uint8 key);
	static void clear();
private:
	static bool _oldKeyState[MAX_KEY];
	static bool _newKeyState[MAX_KEY];
};

#endif
